# -*- coding: utf-8 -*-
"""
Code Introduction:
    This code 
Version History:
    Created: Tue Dec 29 13:51:01 2020
    Current: 

@author: Xing Guo (guoxing.econ@gmail.com)

"""
#%% Import Moduels

## I/O Tools
import os
import _pickle as pickle
import warnings

## Data Process Tools
import pandas as pd
import datetime
from fredapi import Fred

## Graphical
import matplotlib.pyplot as plt
import matplotlib.backends.backend_pdf as figpdf

## Numerical
import numpy as np

## Statistical
import statsmodels.formula.api as sm
import statsmodels.api as SMAPI

idx = pd.IndexSlice
fred = Fred(api_key='86cde3dec5dda5ffca44b58f01838b1e')
# End of Section: Import Moduels
###############################################################################


#%% Setup Working Directory

## Windows System Path
FolderList = ["E:\\Dropbox (Bank of Canada)\\Research Projects\\OHANK\\", \
              "B:\\Dropbox (Bank of Canada)\\Research Projects\\OHANK\\", \
              "D:\\Dropbox (Bank of Canada)\\Research Projects\\OHANK\\"]
for Folder in FolderList:
    WorkDir = Folder+"Empirics\\Analysis_Aggregate\\"
    if os.path.exists(WorkDir):
        os.chdir(WorkDir)    

## Output Folder
OutputFolder = 'TableGraph'
if not os.path.exists(OutputFolder):
    os.makedirs(OutputFolder)
# End of Section: Setup Working Directory
###############################################################################

